package de.slothsoft.wasbinich.android.database.local;

import android.app.Activity;
import de.slothsoft.wasbinich.android.database.webservice.WebserviceDatabase;
import de.slothsoft.wasbinich.core.database.ManagerBean;
import de.slothsoft.wasbinich.core.database.PictureBean;

public class SqlDatabase extends WebserviceDatabase {

    private final SqlDatabaseHelper databaseHelper;

    public SqlDatabase(Activity context) {
	super();
	this.databaseHelper = new SqlDatabaseHelper(context);
    }

    @Override
    protected PictureBean createPictureBean() {
	return new SqlPictureBean(this.databaseHelper);
    }

    @Override
    protected ManagerBean createManagerBean() {
	return new SqlManagerBean(this.databaseHelper);
    }

}
